Skip to content

Conversation

Ovilia
Copy link
Contributor

@Ovilia Ovilia commented Jun 19, 2025

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

#20166 adds value to marker information, which may break the case where user-provided name should be displayed instead. This PR fixes this case by only adding value when type is provided and valid.

Fixed issues

Details

Before: What was the problem?

[
    {name: 'ABC', x: 50, y: 60},
    {x: 70, y: 90}
]

renders 655, while it should be ABC instead. See test/boxplot.html.

After: How does it behave after the fixing?

ABC is displayed.

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Others

Merging options

  • Please squash the commits into a single one when merging.

Other information

Copy link

echarts-bot bot commented Jun 19, 2025

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

Copy link
Contributor

The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-21044@ca03ff8

@Ovilia Ovilia merged commit 9688ffc into v6 Jun 21, 2025
2 checks passed
@Ovilia Ovilia deleted the fix-marker branch June 21, 2025 00:50
@Ovilia Ovilia added the PR: supplementary Fix bugs or enhance a feature introduced in this version, which should ignore in the release note. label Jun 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: author is committer PR: doc unchanged PR: supplementary Fix bugs or enhance a feature introduced in this version, which should ignore in the release note. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants